#ifndef XMESH
#define XMESH
#include "../XModEngine/XResource.h"
#include "../XModEngine/XRender.h"
#include "COMInclude.h"
#include "XSubMesh.h"
#include "XBone.h"
#include "XAnimation.h"

class XC_ENTRY XMesh : public XResource
{
protected:
	vector<XSubMesh*> m_meshes;
	XIndexBuffer* m_indexed;
	XVertexBuffer* m_vertex;
	void FillMesh(void* ptr_vert_data, int i_vert_len, void* ptr_index_data, int i_index_len);
public:
	UINT u_vert_count, u_face_count;
	XMesh(void);
	~XMesh();
	virtual void Render()=0;
	virtual bool LoadResource(XModFileStream file_stream) = 0;

	
	//This Method used ti debug
	//void MakeCube();
};
#endif

